package com.coderdream.chapter05.singleton.singleton;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("Start.");
		
		Singleton obj1 = Singleton.getInstance();
		Singleton obj2 = Singleton.getInstance();
		
		if (obj1 == obj2) {
			System.out.println("obj1 和 obj2 是同一對象實例。");
		}else{
			System.out.println("obj1 和 obj2 并非同一對象實例。");
		}
		
		System.out.println("End.");
	}

}
 